package itsm.isperp.module.repository.db;

import itsm.isperp.framework.data.mybatis.dao.CUDMapper;
import itsm.isperp.framework.manager.DatalogManager;
import itsm.isperp.module.entity.db.DbEntityDatalog;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 
 * 数据日志
 * 
 * @author lizx
 * @date 2014-5-15
 * @since 1.0
 * 
 */
@Repository
public interface DbEntityDatalogMapper extends CUDMapper<DbEntityDatalog>,
		DatalogManager<DbEntityDatalog> {

	@Override
	public void deleteByBusinessId(@Param("businessId") String businessId);

	@Override
	public List<DbEntityDatalog> findByBusinessId(
			@Param("businessId") String businessId);

	void updateChangeId(@Param("changeId") String changeId,
			@Param("id") String id);

	List<DbEntityDatalog> findLastByBusinessId(@Param("businessId") String businessId);

}
